import Main from '@/views/Main.vue'
import medical from './group/medical'
import medicalWaiter from './group/medicalWaiter'
const base = [
  {
    path: '/',
    name: 'main',
    component: Main,
    children: []
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/medical/login/login.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/medical/login/register.vue'),
    meta: {
      title: '注册'
    }
  },
  {
    path: '/policy',
    name: 'policy',
    component: () => import('@/views/medical/policy/policy.vue'),
    meta: {
      title: '用户协议/隐私政策'
    }
  },
  {
    path: '/msgDetail',
    name: 'msgDetail',
    component: () => import('@/views/medical/tabPage/msg/msgDetail.vue'),
    meta: {
      title: '消息'
    }
  },
  {
    path: '/mineMsgDetail',
    name: 'mineMsgDetail',
    component: () => import('@/views/medicalWaiter/tabPage/mine/msg/msgDetail.vue'),
    meta: {
      title: '我的消息'
    }
  }
]

base[0].children.push.apply(base[0].children, medical)
base[0].children.push.apply(base[0].children, medicalWaiter)
// base.push.apply(base, demo, iteminfo)
export default base
